-
Notifications
You must be signed in to change notification settings - Fork 314
[6.0] SqlDecimal Extract Data #3466
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: release/6.0
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Backport of the .NET 6.0 change to simplify how SqlDecimal
data fields are extracted in the netfx build, replacing the old serialization-based decomposer with a direct call to SqlDecimal.Data
.
- Removed complex serialization/
DynamicMethod
-based decomposer forSqlDecimal
- Added a straightforward
SqlDecimalExtractData
implementation usingData
property - Cleaned up unused usings and added XML doc comments and links
Comments suppressed due to low confidence (1)
src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlTypes/SqlTypeWorkarounds.netfx.cs:137
- [nitpick] Add unit tests for
SqlDecimalExtractData
, especially for theSqlDecimal.Null
case and typical non-null values, to verify that data fields are correctly extracted and nulls are handled safely.
internal static void SqlDecimalExtractData(
src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlTypes/SqlTypeWorkarounds.netfx.cs
Show resolved
Hide resolved
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## release/6.0 #3466 +/- ##
================================================
+ Coverage 72.73% 92.58% +19.84%
================================================
Files 285 6 -279
Lines 59162 310 -58852
================================================
- Hits 43034 287 -42747
+ Misses 16128 23 -16105
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Description
Due to legal reasons, we have to take a change to the SqlDecimal type workarounds in netfx.
Issues
N/A
Testing
This is a drop-in replacement for the existing method, CI should successfully verify.